package com.whw.springboot.walk.utils;


import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Random;

/**
 * 活动号生成工具类
 */
public class ApplyUtil {
    public static String genApplyId()
    {
        SimpleDateFormat sdf=new SimpleDateFormat("yyyyMMddHHmmss");
        String newDate=sdf.format(new Date());
        String result="";
        Random random=new Random();
        for(int i=0;i<4;i++){
            result+=random.nextInt(10);
        }
        return newDate+result;

    }
}
